﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Material.Material.Dtos
{
    public class MaterialOutputDtos
    {
        public int Id { get; set; }
        /// <summary>
        /// 出入库类型 (1.出库，2入库)
        /// </summary>
        [DisplayName("出入库类型")]
        public int Material_InOutType { get; set; } = 1;
        /// <summary>
        /// 领料单名称
        /// </summary>
        [DisplayName("领料单名称")]
        public string RequisitionName { get; set; }
        /// <summary>
        /// 领料单编号
        /// </summary>
        [DisplayName("领料单编号")]
        public string RequisitionNumber { get; set; }
        /// <summary>
        /// 领料日期
        /// </summary>
        [DisplayName("领料日期")]
        public DateTime? RequisitionDate { get; set; }

        /// <summary>
        /// 领料人
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 工单名称Id
        /// </summary>
        [DisplayName("工单id")]
        public int? OrderId { get; set; }
        /// <summary>
        /// 工单名称
        /// </summary>
        [DisplayName("工单名称")]
        public string OrderName {  get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        [DisplayName("工单编号")]
        public string OrderNumber { get; set; }
        /// <summary>
        /// 任务名称Id
        /// </summary>
        [DisplayName("任务id")]
        public int? TaskNameId { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        [DisplayName("任务名称")]
        public string TaskName {  get; set; }
        /// <summary>
        /// 任务编号
        /// </summary>
        [DisplayName("任务编号")]
        public string TaskNumber { get; set; }
        /// <summary>
        /// 工艺路线
        /// </summary>
        [DisplayName("工艺路线")]
        public string Routing { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        [DisplayName("工序名称")]
        public string ProcessName { get; set; }

        /// <summary>
        /// 领用数量/入库数量
        /// </summary>
        [DisplayName("领用数量")]
        public int Quantity { get; set; }

        
        /// <summary>
        /// 状态
        /// </summary>
        [DisplayName("状态")]
        public bool Status { get; set; }
 

    }

    /// <summary>
    /// 物料出库状态更新DTO
    /// </summary>
    public class MaterialOutputStatusUpdateDto
    {
        public int Id { get; set; }
        public bool Status { get; set; }
    }
}
